Part Number Hot Search : 
USB20811 4809BF 13442 SR120 NV45AA BSP296N 0TRPB C3622
Product Description
Full Text Search
 

To Download AN1090 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 (R)
AN1090 APPLICATION NOTE STA013 MPEG 2.5 LAYER III SOURCE DECODER
by Ruggero DE LUCA
This Application Note helps the user to work with STA013 Evaluation Board, installing the PC Software Driver, understanding how STA013 MPEG 2.5 Layer III Source Decoder works, and explaining how to control the device functions. The document is composed by 5 main points: - MPEG 2.5 Layer III Technical Introduction - STA013 Device Description - STA013 Evaluation Board Description - STA013 PC Software Driver Description - General Information on STA013 Evaluation Environment
MPEG 2.5 LAYER III TECHNICAL INTRODUCTION An Overview Since 1988 MPEG group has been working on the standardisation of high-quality low-bitrate audio coding techniques. Two standards have been completed: MPEG 1 (coding of mono and stereo signals at sampling rates of 32, 44.1, and 48 KHz) and MPEG 2 (backward-compatible coding of 5+1 multichannel sound signals and low-bitrate coding of mono and stereo at sampling rates of 16, 22.05, 24 KHz). A non standardized evolution of MPEG 2 has been developed by industry, called MPEG 2.5. It is practically the extension to the sampling rates 8, 11.025, and 12 KHz, of the current MPEG 2 standard. The basic idea behind perceptual coding, the general audio coding theory implemented by MPEG, is to hide the quantisation noise below the signal-dependent tresholds of hearing. In this view, the most important question in perceptual coding is: "how much noise can be introduced to the signal without being audible?". The most prominent feature in psychoacoustics is masking in the frequency domain. A fainter signal is completely masked by a masker that is louder and has a similar frequency content. The overall processing chain of an MPEG encoder can summarised in the following four steps: * A filter bank is used to decompose the input signal into subsampled spectral components (time to frequency domain). Together with the corresponding filter bank in the decoder it forms an analysissynthesis system. * Using either the time-domain input signal or the output of the analysis filter bank, an estimate of the actual (time-dependent) masked threshold is computed using rules known from psychoacoustic. This is called the perceptual encoding system. * The spectral components are quantized and coded with the aim of keeping the noise, which is introduced by quantizing, below the masking treshold. Depending on the algorithm, this step is done in different ways, from simple block companding to analysis-by-synthesis system using additional noiseless compression. * A bitstream formatter is used to assemble the bitstream, which typically consists of the quantized and coded spectral coefficients and some side information, such as bit allocation information.
March 1999
1/17
AN1090 APPLICATION NOTE
The Layers Recognizing a variety of application needs, the concept of a generic coding system was envisaged. Depending on the application, one of the three layers of the coding system with increasing complexity and performances is chosen. In all the three layers the input PCM audio signal is converted from the time into a time-frequency domain. This is done by a poliphase filter bank consisting of 32 subbands. In Layer I and II, a filter bank creates 32 subbands representation of the input audio stream, which are then quantized and coded under control of the psychoacoustic model from which a blockwise adaptive bit allocation is derived. Layer I is a simplified version of the MUSICAM coding scheme, most appropriate for consumer applications, where the very low bitrate is not mandatory. Layer II introduces further compression with respect to Layer I, by redundance and irrelevence removal on the scale factors, and it uses more precise quantisation. Layer III consists of a combination of the most effective modules of the ASPEC and MUSICAM coding schemes. Additional frequency resolution is provided by the use of a hybrid filter bank. Every subband is thereby further split into higher resolution frequency lines by a MDCT that operates on 18 subband samples in each subband. The frame lenght is 24 ms, identical to Layer II. In Layer III, nonuniform quantisation, adaptive segmentation, and entropy coding of the quantized values are employed for better coding efficiency. The basic block diagram of a Layer III Decoder is described in Fig. 1. Layer III uses a short-term buffer to help the system cope with the short term difference in the bit rate demand. Only Layer III may operates in a variable rate mode, without violating the minimum requirements of the standard. This layer is most useful in telecommunication, in particular with narrow band ISDN, satellite links, and in all cases where the best quality at low bitrates is mandatory. Figure 1: STA013 Block Diagram
DEMULTIPLEXING & ERROR CHECK
HUFFMAN DECODING
INVERSE QUANTISATION & DESCALING
IMDCT
INVERSE FILTERBANK 32 Subbands
SIDE INFORMATION DECODING
Stereophonic Audio Signal (2*768Kbit/s)
Ancillary Data Encoded Audio Bitstream (8 Kbit/s .... 320 Kbit/s)
STA013 DEVICE DESCRIPTION The STA013 is an MPEG 2.5 Layer III Audio Decoder capable of decoding elementary streams from 8 up to 320 Kbit/sec. The full sampling frequencies range is supported, from 8 up to 48 KHz. For this reason we use the name "MPEG 2.5". * Supports all ISO Layer III Functionalities and WorldSpace Extensions. * Programmable Input Data Interface. 013 STA * Programmable Audio Data Interface. * Automatic Output Sampling Rate Generation. * Programmable Oversampling Clock Frequency for DAC.
2/17
AN1090 APPLICATION NOTE
* * * * * Automatic MPEG Synchronisation, Sync Error Detection and Bistream Error Detection. Automatic Error Cancelment Techniques. Automatic DSP Speed Regulation for Power Consumption Optimisation. Low Power 3.0V and CMOS Technology. 10, 14.31818, 14.7456 MHz Input Clock.
STA013 can decode Layer III compressed streams only, because the lower layers I and II are not supported by this device. It is particulary suitable for Multimedia application, because it can drive the data demand by a dedicated pin. This signal can be used by the system controller to syncronize the data to STA013 input port. It can work with three different standard commercial crystals, 10.00, 14.31818, and 14,7456 MHz. The device can perform both digital Volume and Tone Control, avoiding the use of the correspondant analog components on the application. The most important DAC data format (I2S, etc.) are supported. The Figure 2 describes the STA013 chip partitioning. For any other technical information, refer to STA013 data sheet. Figure 2. STA013 Chip Partitioning
MPEG Input Bitstream
Serial Input Interface
Input Buffer
Demux & Error Check
Side Info Decoding
Huffman Decoder
Frequency to Time Transform
Reconstruction Filterbank
Main Layer III Decoder Diagram
Digital Tone Control Digital Volume Control
P
I2C Interface
Clocks Generation System
Serial Audio Interface
Output Buffer
Digital Audio Effects
Specific Hardware Blocks Embedded RAM Memories Specific Software on Standard 24 Bit DSP Core
Stereophonic Digital Audio Signal
STA013 EVALUATION BOARD DESCRIPTION (see Figure 4 Electrical Schematic and Figure 3 Functional Diagram) The STA013 Evaluation Board (STA013EVB) is useful to perform functional verification of the device operation. The board is connected to an external data source by means of the Input Connector which provides to the user the connection points in order to input the serial data to STA013 and to control the input data flow speed. The Input Connector is indicated on STA013EVB with J6. The Serial Input Clock line for STA013 has to be connected to pin no. 1 of J6. On the STA013EVB, it is connected to pin no. 6 of STA013 (SCKR). The polarity of the STA013 receiver clock can be programmed, as described in the data sheet. The Serial Input Data line for STA013 has to be connected pin 2 of J6. The speed of input data can be controlled by the DATA_REQ signal of STA013 (pin no. 28) and it is connected on STA013EVB to pin 4 of J6. The STA013EVB I2C Connector (JP3) is used to interface the PC interface board to STA013. The JP3 connection point no. 2 is connected to pin 4 of STA013 and is the I2C Serial Clock line (SCL). The maximum speed for this clock is 400 KHz, as specified by I2C standard.
3/17
AN1090 APPLICATION NOTE
The JP3 connection point no. 3 is connected to pin no. 3 of STA013 and is the I2C Serial Data line (SDA). The STA013 I2C interface is used to: Figure 3. STA013EVB Functional Diagram
I2C CONNECTOR JP3
STA013 MPEG 2.5 LAYER III DECODER EVALUATION BOARD SDA RESET SCL CLK/DATA INPUT CONNECTOR J6 SDI SCKR 3 26 4 28 5 6 SO28
HEADPHONE CONNECTOR SO8 AUDIO 1 AMP 3 7 6 J5
STA013
12 11 10 9
OCLK LRCLKT SCKT SDO
4 3 2 1 SO8 DAC
8
AOUTL
J1
5
AOUTR
J2
D98AU944
* * *
Bootstrap the device by downloading the appropriate configuration file. This is done to program STA013 working with one of the three possible cristal frequencies, to select the appropriate output data format depending on the DAC used in the other application. Monitor STA013 decoding operation. It is possible to read in real time all the audio program information, as sampling frequency, channels configuration, input bitstream speed, device interface configuration, and ancillary data. Control STA013 operation. The device implements a fully Digital Volume and Tone Control with parameters programmable via I2C interface. A microcontroller, connected to STA013 I2C interface, can change the parameters to control the volume level, the tones configurations, and the output data format.
The STA013EVB can be used by connecting the I2C port to the Parallel Port of a commercial PC. The I2C protocol is emulated by a dedicated PC Software Driver (STA013SDR) allowing the user to have on STA013 a full control. STA013SDR has a graphical user interface for an easy control of the device functions. The pin no. 4 of STA013EVB I2C Connector is connected to the pin 26 of STA013, System Reset, to reset the device even by using a STA013SDR button. The ouptut of STA013 is a digital audio signal in standard format (as described in the data sheet at page no. 6/30). The pins no. 9, 10, 11, 12 STA013 are connected to the correspondent DAC pins no. 1, 2, 3. and 4. The DAC used on the STA013EVB is a Sigma-Delta 18 bit architecture (CS4331-KS). The analog output of the converter is sent to the active Speakers Connectors J1 (RCA-OUTL) and J2 (RCA-OUTR). The amplified analog outputs are even sent to the J5 Headphone Connector. The amplification is produced by means of an audio amplifier (TDA 2822). On STA013EVB all the MPEG Decoder input and ouput digital signals can be monitored by the following test points:
4/17
AN1090 APPLICATION NOTE
Figure 4. STA013EVB Electrical Schematic
AMP6 2 ways 2.7V/3.3V 1 2 J4 R9 470 D2 GREEN C13 47F C14 0.1F GND SCL 2 1 4 3 RESET 6 5 SDA VDD L1 ferrite AVCC VDD ALL GROUNDS CONNECTED AT ONLY ONE POINT BENEATH THE BOARD R7 4.7K R8 4.7K VDD C12 0.1F TP TP J6 EXT 4 3 2 1 U1E U1F 8 10 12 14 7 9 11 13 JP3 AMP
VDD R6 8.2K C10 4.7F 26 2 3 4 28 19 23 VDD C11 0.1F 14 27 25 RESET GND SCANEN TP C9 10nF SW1 SMD
VDD
1
GND SDA SCL
10
11 D1 RED R24 330
12
13 74LVX04 TP
OUT_CLK/DATA_REQ VDD
FILT VDD C8 0.1F C7 4.7nF C6 470pF R4 1K R13 4.7 C4 1nF C5 0.1F
74LVX04
VDD
22
GND PGND
GND SDI
1 R26 4.7K 5
U1A
2
3
U1B
13 5
4 74LVX04 TP
STA013
U2
18
74LVX04
17 21
PVDD XTI
R14 4.7 VDD J3 SMB
74LVX04 R27 4.7K U1C 6 VDD C30 0.1F 9 U1D
74LVX04 8 TP VDD R22 10K VDD R23 10K VDD
SCKR
6 20 XTO R5 1M X1 XTAL
R1 0
R3 100
R2 100
BIT-EN TESTEN
7 24
16
VDD
VDD C1 0.1F
SRC_INT SDO
8 9 10 11 LRCLKT OCLK 12
15
GND
C2 47pF
C3 47pF
JP1
JP2 SCKT
AVCC C15 0.1F C16 10F VA+ MCLK LRCK DEM/SCLK SDATA 4 3 2 1 7 8 R10 56K C17 10F AOUTL AGND C18 10F AOUTR R21 56K R12 2.7K C19 680pF C29 680pF R11 2.7K OUTL J1 RCA J2 RCA OUTR
TP TP TP TP C24 100F
CS4331-KS
6 5
U3
OUT1
AVCC C20 0.1F R15 4.7 C23 10F VCC
1
8
IN1C25 100F R17 1K
2
7
IN1+ IN2+
R19 56K
C27 0.33F
C22 100F
OUT2
TDA2822D
3
6
C21 0.1F R16 4.7 J5 PHONEJACK STEREO
U4
5 IN2-
GND
C26 100F
R18 1K
R20 56K
C28 0.33F
4
D98AU935A
TEST POINT NAME(TP) RESET SDA SCL DATA_REQ SDI SCKR SDO1 SCKT LRCLK OCLK
(see figure 4 for details)
DESCRIPTION I2C Data I2C Data I2C Clock Data Request Line Input Serial Data Input Serial Clock Input Serial Data Output Serial Clock Output Left/Right Clock Output DAC Oversampling Clock Output
REFERENCE PIN of U2 Pin 26 Pin 3 Pin 4 Pin 28 Pin 5 Pin 6 Pin 9 Pin 10 Pin 11 Pin 12
5/17
AN1090 APPLICATION NOTE
STA013 MASTER CLOCK The STA013 can use three different Master Clock frequencies, each one obtained by an external crystal oscillator X1. The user can even evaluate these three different input frequencies by connecting a function generator to J3-SMB connector. On STA013EVB the mounted crystal is a standard SMD SXA Packaged commercial one. STA013EVB SIGNAL LEVELS The STA013 and all the components on the board work at 3V of power supply. The STA013 EVB Input Connector is bufferized by an interface IC stage (U1A - U1F are six inverters included an 74lVX04 IC) by allowing the user to use directly a data source with signals level up to 5V without further stages. POWER SUPPLY STA013EVB has to be supplied by the J4 connector. This board uses a particular layout technique to minimizing digital and analog noise, including grounding and power supply decoupling.. The allowed supply voltage range is 2.7V - 3.3V. Figure 5. STA013EVB Component Side Silkscreen (not in scale)
TO PC INTERFACE BOARD
Vcc = 3V
-
+ L ACTIVE SPEAKERS R
MP3 SOURCE
HEADPHONES
6/17
AN1090 APPLICATION NOTE
Figure 6. 1134-137.7 PC INTERFACE BOARD (not in scale)
7/17
AN1090 APPLICATION NOTE
Figure 7. PC Interface Schematic.
8/17
AN1090 APPLICATION NOTE
STA013 PC CONTROL SOFTWARE The STA013EVB is provided with a PC Control Software Driver (STA013SDR), allowing the user evaluating all the device functions and controlling the device operation. The STA013SDR is a Win3.x / Win 95 software that can be installed directly by the user on a standard PC. (see Installation Procedure Section) STA013SDR Panel
The graphical user interface of STA013SDR is composed by: Volume Control Bars Tone Control Bars called DAL, DAR, DBL, and DBR. The function implemented is the same than the corresponding Volume Control I2C registers. called Bass Gain, Bass Freq, Treble Gain, and Treble Freq.The functions implemented are equivalent to the corresponding Tone Control I2C Registers. it has equivalent function than the Tone_Atten I2C register. it is used to read the current I2C registers status, corresponding to the Panel Functions. By pressing this button the Panel will show the status of all the displayed registers. it is used to write the current I2C registers status, corresponding to the Panel Functions. By pressing this button the software will update the status of all the displayed registers.
Tone Atten Bar Read Button
Write Button
9/17
AN1090 APPLICATION NOTE
Registers Button this function allow the read and/or the write operation on all the STA013 registers. To write the registers the user has to update the register setting before pressing the write button.
Status Button by pressing this button the user open a window displaying the status of STA013. The possible status are described in the STATUS register description. In the lower part of the Status window the MPEG Frame Counter value is displayed.
Run Button . Firmware Button
the function implemented by this button is equivalent to the RUN I2C register.
by pressing this button the user opens a window to download the STA013 Patch File (if needed). This action is suggested to be preceeded by an HW Reset (by the software or by the button on the STA013EVB).
HW Reset
This button implemet a System Reset. The output of the PC is, in this case, connected to the STA013 pin no. 26. The reset performed by the software and by the hardware button on the STA013 are equivalent.
.
10/17
AN1090 APPLICATION NOTE
Tone Button by selecting this function, the user opens a window describing the ideal frequency response of the Tone Control function. The window is updated when the Tone Control parameters are modified by the users.
Header Button by pressing this button the STA013SDR displays all the relevant information contained in the MPEG Frame Headers of the incoming compressed bitstream.
11/17
AN1090 APPLICATION NOTE
Ancillary Button
this function allow the user to read the Ancillary Data coded in the MPEG stream. The Ancillary Data are displayed as ASCII characters.
PLL Button
by pressing this button, all the PLL configuration register become visible and can be read or written.
12/17
AN1090 APPLICATION NOTE
PCM Button this button, if selected, opens a window to read or change the PCM audio interface configuration.
Init Button
by pressing this button the user download the initialisation file to bootstrap the STA013 on the application board. The initialisation file must be called sta013.ini and must be placed in the directory where the STA013SDR is installed
13/17
AN1090 APPLICATION NOTE
STA013 PC TRANSMISSION SOFTWARE DRIVER DESCRIPTION The STA013EVB is provided with the PC Software Transmission Driver (STA013TXD), allowing the user to send the MPEG bitstream to the device. The STA013TXD is a Win 3xx/Win95 software and can be installed by the user on a standard PC (see Installation Procedure Section) STA013TXD Panel The STA013TXD user interface is composed by a graphical panel. The File button is used to select the .MP3 file to be transmitted to STA013EVB.
Set LPT Button
this panel is used to configure the PC Parallel Port address.
14/17
AN1090 APPLICATION NOTE
NOTE: Before start working with STA013TXD it is suggested to configure the PC Parallel Port to EPP 1.9 Mode by BIOS setup. This is possible only for new versions of Pentium PCs. This configuration enables a DMA channel from the PC HDD to the Parallel Port hardware, improving the performances. Even with this configuration the user may note audio dropouts, due to the Parallel Port performance. To minimise the effect, it is suggested to copy the mp3 files on the P.C. HDD and run a de fragmentation tool. The STA013TXD can handle data rates up to 128Kbit/sec.
PC Parallel Port Pinout for STA013TXD
STA013 SERIAL DATA (to STA013EVB J6) STA013 DATA REQUEST (from STA013EVB J6) STA013 SERIAL CLOCK (to STA013EVB J6)
13 12 11 10 9 8 7 6 5 4 3 2 1 25 24 23 22 21 20 19 18 17 16 15 14
DB25 FEMALE
(STA013EVB J6-GROUND)
D98AU977A
15/17
AN1090 APPLICATION NOTE
GENERAL INFORMATION ON STA013 EVALUATION ENVIRONMENT The STA013 Evaluation toolkit is composed by a set of components, as follows: STA013EVB STA013TXD STA013SDR PC Interface Board
STA013 Evaluation Board (already described in the previous section). STA013 Software Transmission Driver (already described in the previous section). STA013 Software Driver (already described in the previous section).
useful to avoid electrical shocks due to the operating voltage difference between the PC Parallel Port and the STA013EVB. All the kit components are provided with flat cables to connect the different units. Evaluation Environment
+ 3.0 V
PC Interface
+
J3 J4
PC 1: STA013SDR
J6
1 2 3 4 5 6 7 8 9 10 11 12 13 14
28 27 26 25 24 23 22 21 20 19 18 17 16 15
J1 J2
PC 2: STA013TXD
STA013
SO28
STA013EVB
J5
DEMOBOARD SET-UP SEQUENCE Note: Supply voltage of the I2C board is 7 V Supply voltage of STA013EVB is 3.3 V 1. Run "setup.exe" program from STA013SDR software 2. Click on "HWRst" button 3. Click on "Registers" button 4. Select "Ident" register 5. Click on "Read" button and verify that the read value is "172" 6. From the control panel, click on "Firmware" button 7. Click on "HWRst" button 8. Click on "File" button to load the configuration file .reg into the PATCH Ram; 9. Wait until the whole file is downloaded 10. Click on "Cancel" button to exit from the menu 11. Click on "Run" button: now the red led on the board should be switched off 12. Run "STA013TXD" software and, clicking on "File" button, select the mp3 file to be tested. The red led must be now switched on and the music start to play.
16/17
AN1090 APPLICATION NOTE
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specification mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics (c) 1999 STMicroelectronics - Printed in Italy - All Rights Reserved STMicroelectronics GROUP OF COMPANIES Australia - Brazil - Canada - China - France - Germany - Italy - Japan - Korea - Malaysia - Malta - Mexico - Morocco - The Netherlands Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A.
http://www.st.com
17/17


▲Up To Search▲   

 
Price & Availability of AN1090

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X